<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<style type="text/css">td { padding:5px 0;}</style>
<h2 class="contentTitle">添加联系人</h2>
<div class="pageContent">
	<form method="post" id="searchDatad" name="searchDatad" action="costomer/contactUpdate" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<!-- 隐藏域开始 -->
		<input type="hidden" name="b_T_Ufp_ContractWord.customerUuid" value="${b_T_Ufp_ContractWord.customerUuid}" />
		<input type="hidden" name="b_T_Ufp_ContractWord.contractId" value="${b_T_Ufp_ContractWord.contractId}" />
		<!-- 隐藏域结束 -->
		<div class="pageFormContent" layoutH="100">
			<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td>联系人：</td>
					<td>
						<input type="text" id="contact" name="b_T_Ufp_ContractWord.contact" value="${b_T_Ufp_ContractWord.contact}" size="30" class="required"/><span class="info">必填</span>
					</td>
					<td>联系人部门： </td>
					<td>
						<input type="text" id="contactDepname" name="b_T_Ufp_ContractWord.contactDepname" value="${b_T_Ufp_ContractWord.contactDepname}" size="30" />
					</td>
				</tr>
				<tr>
					<td>联系人职位：</td>
					<td>
						<input type="text" id="contactPost" name="b_T_Ufp_ContractWord.contactPost" value="${b_T_Ufp_ContractWord.contactPost}" size="30" />
					</td>
					<td>办公室电话： </td>
					<td>
						<input type="text" id="contactOfficePhone" name="b_T_Ufp_ContractWord.contactOfficePhone" value="${b_T_Ufp_ContractWord.contactOfficePhone}" size="30" />
					</td>
				</tr>
				<tr>
					<td>主要手机号：</td>
					<td>
						<input type="text" id="contactPhone" name="b_T_Ufp_ContractWord.contactPhone" value="${b_T_Ufp_ContractWord.contactPhone}" size="30"  class="required"/><span class="info">必填</span>
					</td>
					<td>备用手机号： </td>
					<td>
						<input type="text" id="contactPhone2" name="b_T_Ufp_ContractWord.contactPhone2" value="${b_T_Ufp_ContractWord.contactPhone2}" size="30" />
					</td>
				</tr>
				<tr>
					<td>邮箱地址：</td>
					<td>
						<input type="text" id="contactEmail" name="b_T_Ufp_ContractWord.contactEmail" value="${b_T_Ufp_ContractWord.contactEmail}" size="30" />
					</td>
					<td>家庭地址： </td>
					<td>
						<input type="text" id="contactHomeAddress" name="b_T_Ufp_ContractWord.contactHomeAddress" value="${b_T_Ufp_ContractWord.contactHomeAddress}" size="30" />
					</td>
				</tr>
				<tr>
					<td>身份证号码：</td>
					<td colspan="3">
						<input type="text" id="contactIdcard" name="b_T_Ufp_ContractWord.contactIdcard" value="${b_T_Ufp_ContractWord.contactIdcard}" size="30" />
					</td>
				</tr>
				<tr>
					<td>
						备&nbsp;&nbsp;&nbsp;&nbsp;注：
					</td>
				</tr>
				<tr>
					<td colspan="4">
						<textarea rows="10" cols="112" name="b_T_Ufp_ContractWord.remark" id="remark">${b_T_Ufp_ContractWord.remark}</textarea>
					</td>
				</tr>
			</table>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript">
	function submitz(){
			jQuery(document).ready(function() {
				  jQuery("#searchDatad")//选择form
				  	.first()
				    .submit();//提交
				});
			//$.pdialog.closeCurrent();
			//window.opener.location.href = window.opener.location.href; if (window.opener.progressWindow) { window.opener.progressWindow.close(); } window.close();
	}
</script>